<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>

<%@ include file="/_taglib.jsp" %>

<%@ include file="/_navbar.jsp" %>
<section class="content">
	<div class="container" id="data-container">
		<div class="col-md-11">
			<form class="required-validate" role="form" action="sys/menu/save" method="post" onsubmit="return ajaxFormSubmit(this,'sys/menu/list')">

				<input type="hidden" "menu__id" name="menu.id" value="${menu.id}">
				<!-- general form elements disabled -->
				<div class="box">
					<div class="box-body">

						<div class="row">
							<div class="col-xs-2">
								<!-- text input -->
								<div class="form-group">
									<label>菜单名称</label> 
									<input type="text" class="form-control"
										id="menu__name"
										name="menu.name" 
										value="${menu.name}"
										placeholder="Enter ...">
								</div>
							</div>
							<div class="col-xs-6">
								<!-- text input -->
								<div class="form-group">
									<label>菜单URL</label> 
									<input type="text" class="form-control"
										id="menu__url"
										name="menu.url" 
										value="${menu.url}"
										placeholder="Enter ...">
								</div>
							</div>
							<div class="col-xs-2">
								<!-- text input -->
								<div class="form-group">
									<label>父菜单编号</label> 
									<input type="text" class="form-control"
										id="menu__pid"
										name="menu.pid" 
										value="${menu.pid}"
										placeholder="Enter ...">
								</div>
							</div>

														
						</div>
						<div class="row">
							<div class="col-xs-2">
								<!-- text input -->
								<div class="form-group">
									<label>编号路径</label> 
									<label>${menu.path}</label>
								</div>
							</div>						
							<div class="col-xs-2">
								<!-- text input -->
								<div class="form-group">
									<label>显示顺序</label> 
									<input type="text" class="form-control"
										id="menu__order_num"
										name="menu.order_num" 
										value="${menu.order_num}"
										placeholder="Enter ...">
								</div>
							</div>						
						</div>



					</div>					<!-- /.box-body -->
					<div class="box-footer" align="center">
						<button type="submit" class="btn btn-primary"
							style="postion: absolute; left: 45%;">保存</button>
					</div>
				</div>				<!-- /.box -->
			</form>
		</div>
	</div>
</section>


<%  
//    String path = request.getContextPath();  
//    String basePath = request.getScheme() + "://"  
//            + request.getServerName() + ":" + request.getServerPort()  
//            + path + "/";  
%> 

<%@ include file="/_edit_js.jsp" %>



